//
//  DHNetworkManager+DHHodaNetworkManager.h
//  宏达APP
//
//  Created by DIANGHONG on 2018/4/27.
//  Copyright © 2018年 123. All rights reserved.
//

#import "DHNetworkManager.h"
@class DHHomeViewModel;
@class DHPlanInfo;
@interface DHNetworkManager (DHHodaNetworkManager)

- (void)login;

- (void)loadConfigListWithPlan_id:(NSNumber *)plan_id completion:(void(^)(BOOL isSuccess, NSArray *datas))completion;
/**
 用户选用按钮的点击 商品发送至服务器

 @param key 排序方式
 @param goods_id 商品id
 @param plan_id ？？
 @param gc_id 商品分类
 @param finishedBlock 完成回调
 */
- (void)postGoodToServiceWithKey:(NSString *)key goods_id:(int)goods_id plan_id:(int)plan_id gc_id:(NSNumber *)gc_id finishedBlock:(void(^)(BOOL isSuccess, NSString *isSuccessTips))finishedBlock;

/**
 网络请求文案控制器商品数据

 @param completion 完成回调
 */
- (void)requestGoodListWithKey:(NSNumber *)key order:(NSNumber *)order page:(NSNumber *)page curPage:(NSNumber *)curPage gc_id:(NSNumber *)gc_id store_id:(NSNumber *)store_id keyword:(NSString *)keyword b_id:(NSNumber *)b_id own_shop:(BOOL)own_shop gift:(BOOL)gift groupbuy:(BOOL)groupbuy xianshi:(BOOL)xianshi virtual:(BOOL)virtual a_id:(NSNumber *)a_id price_from:(NSNumber *)price_from price_to:(NSNumber *)price_to plan_id:(NSNumber *)plan_id completion:(void(^)(NSArray *goodList,NSArray *planList,DHPlanInfo *planInfo, BOOL isSuccess))completion;
/**
 网络请求首页界面数据
 
 @param completion 完成回调
 */
- (void)loadHomeDataWithCompetion:(void(^)(NSArray *arrayList,BOOL isSuccess))completion;
@end
